<div class="modelportfolios index">
	<h2><?php echo __('Model Portfolios'); ?></h2>
	<?php 
		$counter=$this->Session->read("counter"); 
		if($this->Session->read('login')=='yes')
		{
		echo $this->Html->link(__('Portfolio Management'), array('controller' => 'portfoliomanagement', 'action' => 'index'));  }?>
	<table cellpadding="0" cellspacing="0">
		<tr>
			<th> Portfolio Name </th>
			<th> Actions </th>
		</tr>
		<?php 
		for($n=0;$n<$counter;$n++)
		{
			?>
				<tr>
					<td><?php echo $this->Session->read("portfolioname[".$n."]"); ?></td>
					<td class="myButtons">
						<?php 
							$portfoliosid=$this->Session->read("portfoliosid[".$n."]");
							//View Link
							echo "<a href=/DFS/modelportfolios/view/".$portfoliosid."><img src=/DFS/img/view-btn.jpg alt=View/></a>";
						?>
					</td>
				</tr>
			<?php
		}
		?>
	</table>
</div>

